Integrand size = 26, antiderivative size = 159 \[ \int \frac {1}{(b d+2 c d x)^{7/2} \left (a+b x+c x^2\right )} \, dx=\frac {4}{5 \left (b^2-4 a c\right ) d (b d+2 c d x)^{5/2}}+\frac {4}{\left (b^2-4 a c\right )^2 d^3 \sqrt {b d+2 c d x}}+\frac {2 \arctan \left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{9/4} d^{7/2}}-\frac {2 \text {arctanh}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{9/4} d^{7/2}} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 159, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {707, 708, 335, 304, 209, 212} \[ \int \frac {1}{(b d+2 c d x)^{7/2} \left (a+b x+c x^2\right )} \, dx=\frac {2 \arctan \left (\frac {\sqrt {d (b+2 c x)}}{\sqrt {d} \sqrt [4]{b^2-4 a c}}\right )}{d^{7/2} \left (b^2-4 a c\right )^{9/4}}-\frac {2 \text {arctanh}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt {d} \sqrt [4]{b^2-4 a c}}\right )}{d^{7/2} \left (b^2-4 a c\right )^{9/4}}+\frac {4}{d^3 \left (b^2-4 a c\right )^2 \sqrt {b d+2 c d x}}+\frac {4}{5 d \left (b^2-4 a c\right ) (b d+2 c d x)^{5/2}} \]
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 335
Rule 707
Rule 708
Rubi steps \begin{align*} \text {integral}& = \frac {4}{5 \left (b^2-4 a c\right ) d (b d+2 c d x)^{5/2}}+\frac {\int \frac {1}{(b d+2 c d x)^{3/2} \left (a+b x+c x^2\right )} \, dx}{\left (b^2-4 a c\right ) d^2} \\ & = \frac {4}{5 \left (b^2-4 a c\right ) d (b d+2 c d x)^{5/2}}+\frac {4}{\left (b^2-4 a c\right )^2 d^3 \sqrt {b d+2 c d x}}+\frac {\int \frac {\sqrt {b d+2 c d x}}{a+b x+c x^2} \, dx}{\left (b^2-4 a c\right )^2 d^4} \\ & = \frac {4}{5 \left (b^2-4 a c\right ) d (b d+2 c d x)^{5/2}}+\frac {4}{\left (b^2-4 a c\right )^2 d^3 \sqrt {b d+2 c d x}}+\frac {\text {Subst}\left (\int \frac {\sqrt {x}}{a-\frac {b^2}{4 c}+\frac {x^2}{4 c d^2}} \, dx,x,b d+2 c d x\right )}{2 c \left (b^2-4 a c\right )^2 d^5} \\ & = \frac {4}{5 \left (b^2-4 a c\right ) d (b d+2 c d x)^{5/2}}+\frac {4}{\left (b^2-4 a c\right )^2 d^3 \sqrt {b d+2 c d x}}+\frac {\text {Subst}\left (\int \frac {x^2}{a-\frac {b^2}{4 c}+\frac {x^4}{4 c d^2}} \, dx,x,\sqrt {d (b+2 c x)}\right )}{c \left (b^2-4 a c\right )^2 d^5} \\ & = \frac {4}{5 \left (b^2-4 a c\right ) d (b d+2 c d x)^{5/2}}+\frac {4}{\left (b^2-4 a c\right )^2 d^3 \sqrt {b d+2 c d x}}-\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {b^2-4 a c} d-x^2} \, dx,x,\sqrt {d (b+2 c x)}\right )}{\left (b^2-4 a c\right )^2 d^3}+\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {b^2-4 a c} d+x^2} \, dx,x,\sqrt {d (b+2 c x)}\right )}{\left (b^2-4 a c\right )^2 d^3} \\ & = \frac {4}{5 \left (b^2-4 a c\right ) d (b d+2 c d x)^{5/2}}+\frac {4}{\left (b^2-4 a c\right )^2 d^3 \sqrt {b d+2 c d x}}+\frac {2 \tan ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{9/4} d^{7/2}}-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{9/4} d^{7/2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.33 (sec) , antiderivative size = 219, normalized size of antiderivative = 1.38 \[ \int \frac {1}{(b d+2 c d x)^{7/2} \left (a+b x+c x^2\right )} \, dx=\frac {\left (\frac {1}{5}+\frac {i}{5}\right ) \left ((2-2 i) \sqrt [4]{b^2-4 a c} (b+2 c x) \left (b^2-4 a c+5 (b+2 c x)^2\right )-5 (b+2 c x)^{7/2} \arctan \left (1-\frac {(1+i) \sqrt {b+2 c x}}{\sqrt [4]{b^2-4 a c}}\right )+5 (b+2 c x)^{7/2} \arctan \left (1+\frac {(1+i) \sqrt {b+2 c x}}{\sqrt [4]{b^2-4 a c}}\right )-5 (b+2 c x)^{7/2} \text {arctanh}\left (\frac {(1+i) \sqrt [4]{b^2-4 a c} \sqrt {b+2 c x}}{\sqrt {b^2-4 a c}+i (b+2 c x)}\right )\right )}{\left (b^2-4 a c\right )^{9/4} (d (b+2 c x))^{7/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(300\) vs. \(2(133)=266\).
Time = 2.53 (sec) , antiderivative size = 301, normalized size of antiderivative = 1.89
method | result | size |
derivativedivides | \(4 d \left (-\frac {1}{5 d^{2} \left (4 a c -b^{2}\right ) \left (2 c d x +b d \right )^{\frac {5}{2}}}+\frac {1}{d^{4} \left (4 a c -b^{2}\right )^{2} \sqrt {2 c d x +b d}}+\frac {\sqrt {2}\, \left (\ln \left (\frac {2 c d x +b d -\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}{2 c d x +b d +\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d^{4} \left (4 a c -b^{2}\right )^{2} \left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}\right )\) | \(301\) |
default | \(4 d \left (-\frac {1}{5 d^{2} \left (4 a c -b^{2}\right ) \left (2 c d x +b d \right )^{\frac {5}{2}}}+\frac {1}{d^{4} \left (4 a c -b^{2}\right )^{2} \sqrt {2 c d x +b d}}+\frac {\sqrt {2}\, \left (\ln \left (\frac {2 c d x +b d -\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}{2 c d x +b d +\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d^{4} \left (4 a c -b^{2}\right )^{2} \left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}\right )\) | \(301\) |
pseudoelliptic | \(-\frac {-\frac {5 \sqrt {2}\, \left (2 c x +b \right )^{2} \left (2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \left (2 c x +b \right )}+\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}{\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}\right )+\ln \left (\frac {\sqrt {d^{2} \left (4 a c -b^{2}\right )}-\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}} \sqrt {d \left (2 c x +b \right )}\, \sqrt {2}+d \left (2 c x +b \right )}{\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}} \sqrt {d \left (2 c x +b \right )}\, \sqrt {2}+\sqrt {d^{2} \left (4 a c -b^{2}\right )}+d \left (2 c x +b \right )}\right )-2 \arctan \left (\frac {-\sqrt {2}\, \sqrt {d \left (2 c x +b \right )}+\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}{\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}\right )\right ) \sqrt {d \left (2 c x +b \right )}}{32}+\left (-5 c^{2} x^{2}+\left (-5 b x +a \right ) c -\frac {3 b^{2}}{2}\right ) \left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}{5 \left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}} \sqrt {d \left (2 c x +b \right )}\, d^{3} \left (2 c x +b \right )^{2} \left (-\frac {b^{2}}{4}+a c \right )^{2}}\) | \(333\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.27 (sec) , antiderivative size = 1880, normalized size of antiderivative = 11.82 \[ \int \frac {1}{(b d+2 c d x)^{7/2} \left (a+b x+c x^2\right )} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(b d+2 c d x)^{7/2} \left (a+b x+c x^2\right )} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {1}{(b d+2 c d x)^{7/2} \left (a+b x+c x^2\right )} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 605 vs. \(2 (133) = 266\).
Time = 0.30 (sec) , antiderivative size = 605, normalized size of antiderivative = 3.81 \[ \int \frac {1}{(b d+2 c d x)^{7/2} \left (a+b x+c x^2\right )} \, dx=-\frac {\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {3}{4}} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} + 2 \, \sqrt {2 \, c d x + b d}\right )}}{2 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}}}\right )}{b^{6} d^{5} - 12 \, a b^{4} c d^{5} + 48 \, a^{2} b^{2} c^{2} d^{5} - 64 \, a^{3} c^{3} d^{5}} - \frac {\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {3}{4}} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} - 2 \, \sqrt {2 \, c d x + b d}\right )}}{2 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}}}\right )}{b^{6} d^{5} - 12 \, a b^{4} c d^{5} + 48 \, a^{2} b^{2} c^{2} d^{5} - 64 \, a^{3} c^{3} d^{5}} + \frac {{\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {3}{4}} \log \left (2 \, c d x + b d + \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} \sqrt {2 \, c d x + b d} + \sqrt {-b^{2} d^{2} + 4 \, a c d^{2}}\right )}{\sqrt {2} b^{6} d^{5} - 12 \, \sqrt {2} a b^{4} c d^{5} + 48 \, \sqrt {2} a^{2} b^{2} c^{2} d^{5} - 64 \, \sqrt {2} a^{3} c^{3} d^{5}} - \frac {{\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {3}{4}} \log \left (2 \, c d x + b d - \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} \sqrt {2 \, c d x + b d} + \sqrt {-b^{2} d^{2} + 4 \, a c d^{2}}\right )}{\sqrt {2} b^{6} d^{5} - 12 \, \sqrt {2} a b^{4} c d^{5} + 48 \, \sqrt {2} a^{2} b^{2} c^{2} d^{5} - 64 \, \sqrt {2} a^{3} c^{3} d^{5}} + \frac {4 \, {\left (b^{2} d^{2} - 4 \, a c d^{2} + 5 \, {\left (2 \, c d x + b d\right )}^{2}\right )}}{5 \, {\left (b^{4} d^{3} - 8 \, a b^{2} c d^{3} + 16 \, a^{2} c^{2} d^{3}\right )} {\left (2 \, c d x + b d\right )}^{\frac {5}{2}}} \]
[In]
[Out]
Time = 0.26 (sec) , antiderivative size = 230, normalized size of antiderivative = 1.45 \[ \int \frac {1}{(b d+2 c d x)^{7/2} \left (a+b x+c x^2\right )} \, dx=\frac {\frac {4}{5\,\left (b^2\,d-4\,a\,c\,d\right )}+\frac {4\,{\left (b\,d+2\,c\,d\,x\right )}^2}{d\,{\left (b^2\,d-4\,a\,c\,d\right )}^2}}{{\left (b\,d+2\,c\,d\,x\right )}^{5/2}}+\frac {2\,\mathrm {atan}\left (\frac {b^4\,\sqrt {b\,d+2\,c\,d\,x}+16\,a^2\,c^2\,\sqrt {b\,d+2\,c\,d\,x}-8\,a\,b^2\,c\,\sqrt {b\,d+2\,c\,d\,x}}{\sqrt {d}\,{\left (b^2-4\,a\,c\right )}^{9/4}}\right )}{d^{7/2}\,{\left (b^2-4\,a\,c\right )}^{9/4}}+\frac {\mathrm {atan}\left (\frac {b^4\,\sqrt {b\,d+2\,c\,d\,x}\,1{}\mathrm {i}+a^2\,c^2\,\sqrt {b\,d+2\,c\,d\,x}\,16{}\mathrm {i}-a\,b^2\,c\,\sqrt {b\,d+2\,c\,d\,x}\,8{}\mathrm {i}}{\sqrt {d}\,{\left (b^2-4\,a\,c\right )}^{9/4}}\right )\,2{}\mathrm {i}}{d^{7/2}\,{\left (b^2-4\,a\,c\right )}^{9/4}} \]
[In]
[Out]